package com.rc.pojo.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.rc.common.model.BaseConEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 *  实体类。
 *
 * @author 27806
 * @since 2024-06-16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "adoption_info", schema = "rc")
public class AdoptionInfo  implements BaseConEntity,Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    private Long orderId;

    private BigDecimal price;

    private String cover;

    private String contact;

    private String phone;

    private String treeName;

    private String deliveryCycle;

    private String treeAddress;

    private String address;

    @Column(onInsertValue = "1")
    private Boolean adopting;

    private Long plantItemId;

    @Column(tenantId = true)
    private Long conId;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(onInsertValue = "now()",onUpdateValue = "now()")
    private LocalDateTime updateTime;

}
